Page({
  data: {
    announcementList: []
  },
  onLoad() {
    // 消息提示
    // wx.utils.toast("显示成功")
    // 调用
    this.getAnnouncement()

  },
  async getAnnouncement() {
    const res = await wx.http({
      url: '/announcement'
    })
    // console.log(8, res.data);
    this.setData({
      announcementList: res.data
    })
  }
})
